package com.taijihuabao.modules.model.menu.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 菜单模型
 *
 * @author Wang
 */
@Data
@ApiModel("菜单模型")
public class MenuInfoVO {

    /**
     * 菜单主键
     */
    @ApiModelProperty(value = "菜单主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 父级菜单
     */
    @ApiModelProperty(value = "父级菜单")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long parentId;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String name;

    /**
     * 菜单链接
     */
    @ApiModelProperty(value = "菜单链接")
    private String menuUrl;

    /**
     * 菜单等级
     */
    @ApiModelProperty(value = "菜单等级")
    private String menuLevel;

    /**
     * 子级菜单集合
     */
    @ApiModelProperty(value = "子级菜单集合")
    private List<MenuInfoVO> sonMenus;
}
